import {
  service
} from "./request/request";
/**
 * 获取订单信息-APP
 */
export function getOrderInfoAPP(param) {
  return service({
    url: `/V1.0.0/web_doctor/remoteInterrogation/doctorOrder`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}
/**
 * 获取订单信息-一体机
 */
export function getOrderInfo(param) {
  return service({
    url: `/V1.0.0/web_doctor/remoteInterrogation/deviceDoctorOrder`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}
/**
 * 医生接诊-订单状态为接诊中
 */
export function doctorStartOrder(param) {
  return service({
    url: `/V1.0.0/web_doctor/remoteInterrogation/upOS`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}
/**
 * 医生结束问诊-订单状态为待确认
 */
export function doctorEndOrder(param) {
  return service({
    url: `/V1.0.0/web_doctor/remoteInterrogation/confirmStatus`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}
/**
 * 医生结束问诊-订单状态为待确认
 */
export function getOrderDetails(param) {
  return service({
    url: `/V1.0.0/web_doctor/remoteInterrogation/orderDetails`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}
/**
 * 添加病历
 */
export function addMedicalHistory(param) {
  return service({
    url: `/V1.0.0/web_doctor/inquiry/addMedicalHistory`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}
/**
 * 查询病历
 */
export function queryMedicalHistory(param) {
  return service({
    url: `/V1.0.0/web_doctor/inquiry/queryMedicalHistoryDetail`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}
/**
 * 查询医生最后一条在问诊中的订单
 */
export function getlastOrder(param) {
  return service({
    url: `/V1.0.0/web_doctor/remoteInterrogation/lastDoctorOrder`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}